<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>Kinect Body Tracking: shahqaan.kinect.SkeletonPanel Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Kinect Body Tracking
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classshahqaan_1_1kinect_1_1_skeleton_panel.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classshahqaan_1_1kinect_1_1_skeleton_panel-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">shahqaan.kinect.SkeletonPanel Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Inherits JPanel, and Runnable.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab7bfeeea8e3f25ffac6d2dd4f4c7e2cc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshahqaan_1_1kinect_1_1_skeleton_panel.html#ab7bfeeea8e3f25ffac6d2dd4f4c7e2cc">SkeletonPanel</a> (<a class="el" href="classshahqaan_1_1kinect_1_1_extended_skeletons.html">ExtendedSkeletons</a> skeleton, <a class="el" href="interfaceshahqaan_1_1kinect_1_1_abstract_loggable.html">AbstractLoggable</a> loggableSkeleton)</td></tr>
<tr class="separator:ab7bfeeea8e3f25ffac6d2dd4f4c7e2cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1bd2c0659e86382df5b48d903a0d256"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac1bd2c0659e86382df5b48d903a0d256"></a>
Dimension&#160;</td><td class="memItemRight" valign="bottom"><b>getPreferredSize</b> ()</td></tr>
<tr class="separator:ac1bd2c0659e86382df5b48d903a0d256"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39124ff198ed520dea564d61b236b204"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39124ff198ed520dea564d61b236b204"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>closeDown</b> ()</td></tr>
<tr class="separator:a39124ff198ed520dea564d61b236b204"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87dac3cd9d5bc7993aa55b004eff204c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshahqaan_1_1kinect_1_1_skeleton_panel.html#a87dac3cd9d5bc7993aa55b004eff204c">run</a> ()</td></tr>
<tr class="separator:a87dac3cd9d5bc7993aa55b004eff204c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac33a7bb72adba42dbde1cb061c7a4199"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshahqaan_1_1kinect_1_1_skeleton_panel.html#ac33a7bb72adba42dbde1cb061c7a4199">paintComponent</a> (Graphics g)</td></tr>
<tr class="separator:ac33a7bb72adba42dbde1cb061c7a4199"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Extends JPanel Implements Runnable</p>
<p>Calls <a class="el" href="classshahqaan_1_1kinect_1_1_extended_skeletons.html#a35840072869d31cde236b47036307338">ExtendedSkeletons.draw()</a> <a class="el" href="classshahqaan_1_1kinect_1_1_skeletons.html#ad92c8f39a7d775859eb3dab7478961cb">ExtendedSkeletons.update()</a> in a different thread </p>

<p>Definition at line <a class="el" href="_skeleton_panel_8java_source.html#l00022">22</a> of file <a class="el" href="_skeleton_panel_8java_source.html">SkeletonPanel.java</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab7bfeeea8e3f25ffac6d2dd4f4c7e2cc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">shahqaan.kinect.SkeletonPanel.SkeletonPanel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshahqaan_1_1kinect_1_1_extended_skeletons.html">ExtendedSkeletons</a>&#160;</td>
          <td class="paramname"><em>skeleton</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="interfaceshahqaan_1_1kinect_1_1_abstract_loggable.html">AbstractLoggable</a>&#160;</td>
          <td class="paramname"><em>loggableSkeleton</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Configures JPanel properties Assigns variables Starts new thread for <a class="el" href="classshahqaan_1_1kinect_1_1_skeletons.html#ad92c8f39a7d775859eb3dab7478961cb">ExtendedSkeletons.update()</a></p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">skeleton</td><td><a class="el" href="classshahqaan_1_1kinect_1_1_extended_skeletons.html">ExtendedSkeletons</a> instance passed to this class </td></tr>
    <tr><td class="paramname">loggableSkeleton</td><td><a class="el" href="interfaceshahqaan_1_1kinect_1_1_abstract_loggable.html">AbstractLoggable</a> intance passed to this class </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_skeleton_panel_8java_source.html#l00039">39</a> of file <a class="el" href="_skeleton_panel_8java_source.html">SkeletonPanel.java</a>.</p>
<div class="fragment"><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;                                              {</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="comment">// Set JPanel properties</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        setBackground(Color.BLACK);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="comment">// Configure variables</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        this.loggable = loggableSkeleton;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        this.skels = skeleton;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        msgFont = <span class="keyword">new</span> Font(<span class="stringliteral">&quot;SansSerif&quot;</span>, Font.BOLD, 24);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keyword">new</span> Thread(<span class="keyword">this</span>).start();   <span class="comment">// start updating the panel</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    } </div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ac33a7bb72adba42dbde1cb061c7a4199"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void shahqaan.kinect.SkeletonPanel.paintComponent </td>
          <td>(</td>
          <td class="paramtype">Graphics&#160;</td>
          <td class="paramname"><em>g</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Calls <a class="el" href="classshahqaan_1_1kinect_1_1_skeletons.html#ad92c8f39a7d775859eb3dab7478961cb">ExtendedSkeletons.update</a></p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">g</td><td></td></tr>
  </table>
  </dd>
</dl>
<p>Template</p>

<p>Definition at line <a class="el" href="_skeleton_panel_8java_source.html#l00086">86</a> of file <a class="el" href="_skeleton_panel_8java_source.html">SkeletonPanel.java</a>.</p>
<div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                                           {</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        super.paintComponent(g);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        Graphics2D g2d = (Graphics2D) g;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        g2d.setFont(msgFont);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;       </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        skels.<a class="code" href="classshahqaan_1_1kinect_1_1_extended_skeletons.html#a35840072869d31cde236b47036307338">draw</a>(g2d);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="comment"></span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment">        /**</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">         * Template</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">        g2d.drawLine(</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment">                40, 40, </span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="comment">                600, 400);</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment">                * */</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    }</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a87dac3cd9d5bc7993aa55b004eff204c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void shahqaan.kinect.SkeletonPanel.run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Calls <a class="el" href="classshahqaan_1_1kinect_1_1_skeletons.html#ad92c8f39a7d775859eb3dab7478961cb">ExtendedSkeletons.update()</a> </p>

<p>Definition at line <a class="el" href="_skeleton_panel_8java_source.html#l00068">68</a> of file <a class="el" href="_skeleton_panel_8java_source.html">SkeletonPanel.java</a>.</p>
<div class="fragment"><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;                      {</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        isRunning = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="keywordflow">while</span> (isRunning) {</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;            <span class="comment">// long startTime = System.currentTimeMillis();</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            skels.<a class="code" href="classshahqaan_1_1kinect_1_1_skeletons.html#ad92c8f39a7d775859eb3dab7478961cb">update</a>();</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            <span class="comment">// imageCount++;</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            <span class="comment">// totalTime += (System.currentTimeMillis() - startTime);</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            repaint();</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        System.exit(0);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Documents/Projects/FYP - Computer Generated Art/Development/kinect-body-language-analysis/src/shahqaan/kinect/<a class="el" href="_skeleton_panel_8java_source.html">SkeletonPanel.java</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>shahqaan</b></li><li class="navelem"><b>kinect</b></li><li class="navelem"><a class="el" href="classshahqaan_1_1kinect_1_1_skeleton_panel.html">SkeletonPanel</a></li>
    <li class="footer">Generated on Sun Mar 31 2013 01:32:11 for Kinect Body Tracking by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3.1 </li>
  </ul>
</div>
</body>
</html>
